package com.lagou.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lagou.common.pojo.PurchaseItem;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author cyt
 * @date 2020/11/25
 */
public interface PurchaseItemMapper extends BaseMapper<PurchaseItem> {

    @Select("select good_id from purchase_item where order_id = #{id}")
    public List<Integer> findItemIdsByOrderId(Integer id);


}
